package com.jrx.anytxn.param.mapper.ext;

import com.jrx.anytxn.param.entity.GaSubjectSummaryInfo;
import com.jrx.anytxn.param.mapper.base.GaSubjectSummaryInfoMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExtGaSubjectSummaryInfoMapper extends GaSubjectSummaryInfoMapper {

    /**
     * 根据主键查询对象
     *
     * @param id 主键
     * @param tenantId 租户id
     * @return com.jrx.anytxn.accounting.entity.subjectsummary
     * @author Qingyao Xing
     * @date 2019/9/6 10:33
     */
    GaSubjectSummaryInfo selectModalByIdAndTenId(@Param("id") Long id, @Param("tenantId") String tenantId);

    /**
     * 分页查询所有
     *
     * @param tenantId 租户id
     * @return java.util.List<com.jrx.anytxn.accounting.entity.subjectsummary>
     * @author Qingyao Xing
     * @date 2019/9/6 10:20
     */
    List<GaSubjectSummaryInfo> selectAllByPageAndTenId(@Param("tenantId") String tenantId,@Param("beginDate") String beginDate,@Param("endDate") String endDate,@Param("subjectId") String subjectId);

    /**
     * 根据主键查询 
     * @param subjectId String 科目号
     * @param tenantId  String 租户号
     * @param summaryMonth String 月份
     * @return GaSubjectSummaryInfo
     */
    GaSubjectSummaryInfo selectByUnique(@Param("subjectId")String subjectId,@Param("tenantId")String tenantId,@Param("summaryMonth")String summaryMonth);

    void batchInsert(List<GaSubjectSummaryInfo> list);

    void batchUpdateForBatch(List<GaSubjectSummaryInfo> updateList);
}
